package com.xmfh.wemedia.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2022-04-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dd_video")
public class DdVideo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 视频标题
     */
    @TableField("title")
    private String title;

    /**
     * 视频描述
     */
    @TableField("desc")
    private String desc;

    /**
     * 封面图片地址
     */
    @TableField("img_url")
    private String imgUrl;

    /**
     * 视频文件地址
     */
    @TableField("video_url")
    private String videoUrl;

    /**
     * 点赞数
     */
    @TableField("fabulous")
    private Integer fabulous;

    /**
     * 评论数
     */
    @TableField("comment")
    private Integer comment;

    /**
     * 浏览量
     */
    @TableField("views")
    private Integer views;

    /**
     * 热度值
     */
    @TableField("hot")
    private Integer hot;

    /**
     * 发布者
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 分类id
     */
    @TableField("category_id")
    private Integer categoryId;

    /**
     * 发布地
     */
    @TableField("pub_location")
    private Integer pubLocation;

    /**
     * 封面图样式  non-无图， single-单图，multi-多图
     */
    @TableField("style_flag")
    private String styleFlag;

    /**
     * 发布时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private String nickname;
}
